from Mouth_examofzhuan5.Page.Page_two import Page_two
import pytest
from selenium import webdriver






class Test_Case():
    @pytest.fixture()
    def get_driver(self):
        driver=webdriver.Chrome()
        print('start case')
        yield driver
        driver.quit()
        print('end case')









    def test_01(self,get_driver):
        driver=get_driver
        page=Page_two(driver)
        page.open_url('https://www.jiuxian.com/')
        # 隐式等待
        driver.implicitly_wait(10)
        page.addcar()






